import request from '@/utils/request'


export default {
  //查询用户所有信息管理员
  pageList(page, limit, searchObj) {
    return request({
        url: `/user/signin/${page}/${limit}`,
        method: `post`,
        data: searchObj
    })
  },
   //根据id获取信息
   getidbyinfo(email){
    return request({
      url: `/user/signin/getidbyinfo/${email}`,
      method: 'get',

    })
  },

  //修改用户信息
  reviseapi(data){
    return request({
      url: '/user/signin/revise',
      method: 'put',
      data : data
    })
  },
     //根据id删除账号信息
     removeById(email) {
        return request({
            url: `/user/signin/deleteId/${email}`,
            method: `delete`
        })
      },
}